<?xml version="1.0" encoding="UTF-8"?>
<!--

    BleachBit
    Copyright (C) 2008-2025 Andrew Ziem
    https://www.bleachbit.org

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

This is the directory layout for gPodder 3.10.13 on Windows 10 under %Documents%\gPodder

./Database
./Downloads
./Downloads/Stuff You Should Know
./Downloads/Stuff You Should Know/HSW3963930750.mp3
./Downloads/Stuff You Should Know/folder.png
./Logs
./Logs/2020-03-15.log
./Settings.json
./gpodder.net

This is the directory layout for gPodder 3.10.9-1 on Linux under ~/gPodder

./Database
./Database-journal
./Downloads
./Downloads/Friday Night Comedy from BBC Radio 4
./Downloads/Friday Night Comedy from BBC Radio 4/FridayNightComedyFromBBCRadio4-20200313-TheNowShow13thMarch2020FtChrisMcCauslandSaraBarronAndHugeDavies.mp3
./Downloads/Friday Night Comedy from BBC Radio 4/folder.jpg
./Logs
./Logs/2020-03-15.log
./Settings.json
./gpodder.net
./gpodder.net-journal

gPodder 3.10.9-1 on Linux
- does not have $XDG_CONFIG_HOME/gpodder
- does have ~/.cache/gpodder/

-->
<cleaner id="gpodder">
  <label>gPodder</label>
  <var name="base">
    <value os="windows">%Documents%\gPodder</value>
    <value os="linux">~/gPodder</value>
  </var>
  <option id="cache">
    <label>Cache</label>
    <description>Delete the cache</description>
    <action command="delete" search="glob" path="$XDG_CONFIG_HOME/gpodder/cache/*xml"/>
    <action command="delete" search="walk.top" path="$XDG_CACHE_HOME/gpodder"/>
  </option>
  <option id="downloaded_podcasts">
    <label>Downloaded podcasts</label>
    <description>Delete downloaded podcasts</description>
    <action command="delete" search="walk.files" path="$$base$$/Downloads"/>
  </option>
  <option id="logs">
    <label>Logs</label>
    <description>Delete the logs</description>
    <action command="delete" search="walk.files" path="$$base$$/Logs"/>
  </option>
  <option id="vacuum">
    <label>Vacuum</label>
    <description>Clean database fragmentation to reduce space and improve speed without removing any data</description>
    <action command="sqlite.vacuum" search="file" path="$XDG_CONFIG_HOME/gpodder/database.sqlite"/>
    <action command="sqlite.vacuum" search="file" path="$$base$$/Database"/>
    <action command="sqlite.vacuum" search="file" path="$$base$$/gpodder.net"/>
  </option>
</cleaner>
